<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ContratoViewDlg" widgetVar="ContratoViewDialog" modal="true" resizable="false" appendTo="@(body)" header="#{bundle.ViewContratoTitle}">
            <h:form id="ContratoViewForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{contratoController.selected != null}">
                        <h:outputText value="#{bundle.ViewContratoLabel_idContrato}"/>
                        <h:outputText value="#{contratoController.selected.idContrato}" title="#{bundle.ViewContratoTitle_idContrato}"/>
                        <h:outputText value="#{bundle.ViewContratoLabel_nuContrato}"/>
                        <h:outputText value="#{contratoController.selected.nuContrato}" title="#{bundle.ViewContratoTitle_nuContrato}"/>
                        <h:outputText value="#{bundle.ViewContratoLabel_vlContrato}"/>
                        <h:outputText value="#{contratoController.selected.vlContrato}" title="#{bundle.ViewContratoTitle_vlContrato}"/>
                        <h:outputText value="#{bundle.ViewContratoLabel_dtInicioVigencia}"/>
                        <h:outputText value="#{contratoController.selected.dtInicioVigencia}" title="#{bundle.ViewContratoTitle_dtInicioVigencia}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:outputText>
                        <h:outputText value="#{bundle.ViewContratoLabel_dtFimVigencia}"/>
                        <h:outputText value="#{contratoController.selected.dtFimVigencia}" title="#{bundle.ViewContratoTitle_dtFimVigencia}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:outputText>
                        <h:outputText value="#{bundle.ViewContratoLabel_inSituacao}"/>
                        <h:outputText value="#{contratoController.selected.inSituacao}" title="#{bundle.ViewContratoTitle_inSituacao}"/>
                        <h:outputText value="#{bundle.ViewContratoLabel_codParteContratada}"/>
                        <h:outputText value="#{contratoController.selected.codParteContratada}" title="#{bundle.ViewContratoTitle_codParteContratada}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{bundle.Close}" onclick="ContratoViewDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
